//  File: DrivingLane.cpp
//Author: Matt Noser
// Desc.: driving lane
//  Date: March 28, 2014

//hidisdendnsadfaDFSGasjkdfsal
#include <cstdlib>
#include <iostream>
#include <string>

#include "DrivingLane.h"
#include "StopLight.h"

	drivingLane::drivingLane(){
		numberOfDriversInLane=0;
	}

	drivingLane::drivingLane(const int& stopLight, const int& numberOfDriversInLane){
	
	}

	void drivingLane::addDriver(){
		numberOfDriversInLane++;
	}

	void drivingLane::exitLane(){
		if(numberOfDriversInLane > 0)
		{
		numberOfDriversInLane--;
		}
	}

	int drivingLane::getNumberOfDriversInLane(){
		return numberOfDriversInLane;
	}

	void drivingLane::changeMode(int newMode){
		stopLight.changeMode(newMode);
	}
	int drivingLane::getMode(){
		return stopLight.getMode();
	}

